﻿
namespace InterfaceLib
{
    /// <summary>
    /// 短信发送接口
    /// </summary>
    public interface IMsgHandler
    {
        /// <summary>
        /// 短信接口实体类
        /// </summary>
        MsgModel InfoModel { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        string PhoneNumber { get; set; }
        /// <summary>
        /// 验证接口地址是否正确
        /// </summary>
        /// <param name="errMsg">失败时提示</param>
        /// <returns></returns>
        bool Verify(out string errMsg);
        /// <summary>
        /// 发送短信
        /// </summary>
        /// <returns></returns>
        void SendMsg();
    }
}
